package org.foreveross.que.infra;

import java.util.List;
import java.util.Map;

import org.foreveross.que.entity.SayEntity;
import org.foreveross.que.infra.base.ddd.repository.IBaseRepository;

public interface SayRepository extends IBaseRepository {

	/**
	 * 根据条件分页查询记录
	 * @param params
	 * @param pageIndex
	 * @param pageLen
	 * @return
	 * @throws Exception
	 */
	public List<SayEntity> findSays(Map<String, Object> paramsMap, Integer pageIndex,
			Integer pageLen) throws Exception;

	/**
	 * 根据条件查询记录总数
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public Long findSaysCount(Map<String, Object> paramsMap) throws Exception;

}
